package com.ckk.springcloud.feigin;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @author 陈昆昆
 * @version 1.0
 * @date 2020/6/16 16:26
 */
@FeignClient(value = "CLOUD-PROVIDER-HYSTRIX-PAYMENT",fallback = HystrixFeignImpl.class)
@Component
public interface HystrixFeign {
    @GetMapping("payment/hystrix/getok")
    public String getok();
    @GetMapping("payment/hystrix/isNotok")
    public String getisnotok();
}
